package com.jic.market.api.manage;

import com.jic.common.base.vo.RestResult;
import com.jic.market.request.PromotionRequest;
import com.jic.market.response.PageResponse;
import com.jic.market.response.PromotionResponse;

import javax.servlet.http.HttpServletRequest;

/**
 * description: PromotionManageApi
 * date: 2020-01-10 11:58
 * author: wangys
 * version: 1.0
 */
public interface PromotionManageApi {

    RestResult<PageResponse<PromotionResponse>> list(HttpServletRequest servletRequest, PromotionRequest request);

    RestResult<Long> create(HttpServletRequest servletRequest, PromotionRequest request);

    RestResult<Long> update(HttpServletRequest servletRequest, PromotionRequest request);

    RestResult<PromotionResponse> detail(HttpServletRequest servletRequest, PromotionRequest request);

    RestResult delete(HttpServletRequest servletRequest, PromotionRequest request);

    RestResult close(HttpServletRequest servletRequest, PromotionRequest request);

    RestResult copy(HttpServletRequest servletRequest, PromotionRequest request);

    RestResult updateStatus(HttpServletRequest servletRequest, PromotionRequest request);

    RestResult reviewPromotion(PromotionRequest request);
}
